import pinia from "@/stores/defaultPinia";
import { useAppStore } from "@/stores/appStore";
const app = useAppStore(pinia);

export const usePageLoading = () => {
  const loadStart = () => {
    app.setPageLoading(true);
  };

  const loadDone = () => {
    app.setPageLoading(false);
  };

  return {
    loadStart,
    loadDone,
  };
};
